# -*- coding:utf-8 -*-
"""
@Created on : 2022/4/22 22:02
@Author: binkuolo
@Des: api路由
"""
from fastapi import APIRouter

from api.admin import odbres
from api.endpoints.test import test_oath2
from api.endpoints import  role, access, websocket
from api.extends import sms, cos
from api.yh import index_posts, index_row, cosplay, myuser, detail, acement, search, guanhua

api_router = APIRouter(prefix="/api")
api_router.post("/test/oath2", tags=["测试oath2授权"])(test_oath2)
# api_router.include_router(user.router, prefix='/admin', tags=["用户管理"])
# api_router.include_router(role.router, prefix='/admin', tags=["角色管理"])
# api_router.include_router(access.router, prefix='/admin', tags=["权限管理"])
api_router.include_router(websocket.router, prefix='/ws', tags=["WebSocket"])
# api_router.include_router(sms.router, prefix='/sms', tags=["短信接口"])
# api_router.include_router(cos.router, prefix='/cos', tags=["对象存储接口"])

api_router.include_router(index_posts.router, prefix='/posts', tags=[""])
api_router.include_router(index_row.router, prefix='/row', tags=[""])
api_router.include_router(cosplay.router, prefix='/cosplay', tags=[""])
api_router.include_router(myuser.router, prefix='/user', tags=[""])
api_router.include_router(detail.router, prefix='/detail', tags=[""])
api_router.include_router(acement.router, prefix='/acement', tags=[""])
api_router.include_router(search.router, prefix='/search', tags=[""])
api_router.include_router(guanhua.router, prefix='/guanhua', tags=[""])

api_router.include_router(odbres.router, prefix='/admin', tags=[""])

